﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/Admin.master" AutoEventWireup="true" Inherits="Administrator_AdminProductImageIU"
    Title="Quản trị ảnh sản phẩm" Codebehind="AdminProductImageIU.aspx.cs" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Label ID="lbAdminProduct" runat="server" Text="CẬP NHẬT THÔNG TIN HÌNH ẢNH SẢN PHẨM"></asp:Label>
    </h1>
    <div class="accountInfo">
        <table cellspacing="0" cellpadding="0" class="data-table">
            <tbody>
                <tr>
                    <td colspan="2">
                        <span class="failureNotification">
                            <asp:Label ID="lbMessage" runat="server" Text=""></asp:Label>
                        </span>
                        <asp:ValidationSummary ID="CustomerValidationSummary" runat="server" CssClass="failureNotification"
                            ValidationGroup="CustomerGroup" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lbHinhAnhUrl" runat="server">Hình Ảnh:</asp:Label>
                    </td>
                    <th>
                        <asp:FileUpload ID="fuHinhAnhUrl" runat="server" CssClass="textEntry" />
                        <asp:RegularExpressionValidator ValidationGroup="CustomerGroup" ID="rHinhAnhUrl"
                            runat="server" ControlToValidate="fuHinhAnhUrl" CssClass="failureNotification"
                            ErrorMessage="Chỉ upload hình ảnh (.bmp,.jpg,.png,.gif)." ToolTip="Chỉ upload hình ảnh (.bmp,.jpg,.png,.gif)."
                            ValidationExpression="^.*\.((j|J)(p|P)(e|E)?(g|G)|(g|G)(i|I)(f|F)|(p|P)(n|N)(g|G)|(b|B)(m|M)(p|P))$">*</asp:RegularExpressionValidator>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                        &nbsp;
                    </td>
                    <th>
                        <asp:Image ID="imgHinhAnh" runat="server" BorderWidth="0" Height="150px" Width="150px" />
                    </th>
                </tr>
                
                <tr>
                    <td align="right">
                        <asp:Label ID="lbNumberOfOrder" runat="server">Sắp Xếp:</asp:Label>
                    </td>
                    <th>
                        <asp:TextBox ID="txtNumberOfOrder" runat="server">1</asp:TextBox>
                    </th>
                </tr>
                <tr>
                    <td align="right">
                       
                    </td>
                    <th>
                        <asp:CheckBox ID="ckPublish" runat="server" Checked="true" Text="Hiển thị" />
                    </th>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <th>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" ValidationGroup="CustomerGroup" CssClass="btn_action"
                            OnClick="btnSave_Click" />
                        <asp:Button ID="btnApply" runat="server" Text="Áp dụng" 
                            ValidationGroup="CustomerGroup" CssClass="btn_action" 
                            onclick="btnApply_Click" />
                        <asp:Button ID="btnBack" runat="server" Text="Quay lại danh sách ảnh" OnClick="btnBack_Click" CssClass="btn_action" />
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
